package org.peterbjornx.net.packet;

import org.peterbjornx.io.RSInputStream;
import org.peterbjornx.Client;

import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: PeterbjornX
 * Date: Apr 9, 2009
 * Time: 6:57:44 PM
 * Handles the region select packet
 */
public class RegionSelect implements Packet{
    public void handleData(RSInputStream instream, Client clientinstance, int psize) throws IOException {
        int mapx = instream.readShortA();
        int mapy = instream.readShort();
        clientinstance.loadregion(mapx,mapy);
    }
}
